﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LeMigue.Scrum.Iterface.Model;

namespace LeMigue.TeamPortal.Base.View
{
    public class ProjectView
    {
        protected Project _project;

        public ProjectView(Project project)
        {
            _project = project;
        }

        public IList<ProjectView> Sub
        {
            get { return _project.Child.Select(i => new ProjectView(i)).ToList(); }
        }

        public string Title
        {
            get { return _project.Title; }
        }

    }
}
